import { Login } from "../login";
// import Analyse from "../pages/Analyse";
// import Manage from "../pages/Manage";
// import Sign from "../pages/Sign";
// import Login from "../pages/Login";
import { Register } from '../register/index'
// import { Navigate } from 'react-router-dom'
import { Main } from '../main/index'
import { Details } from '../main/details'
import { Push } from '../push/index'
import { My } from '../my/index'
import { Connect } from '../connect/index'
import { Set } from '../set/index'
import { Search } from '../search/index'
// 路由表统一管理理由
export default ([
    {
        path: '/',  //路径
        element: <Login />,  //组件

        children: [
            {
                path: '/register',
                element: <Register />
            },

        ]
    },
    {
        path: '/main',
        element: <Main />
    },
    {
        path: '/details',
        element: <Details />
    },
    {
        path: '/push',
        element: <Push />
    },
    {
        path: '/my',
        element: <My />
    },
    {
        path: '/connect',
        element: <Connect />
    },
    {
        path: '/set',
        element: <Set />
    },
    {
        path: '/search',
        element: <Search />
    },
    // {
    //     path:'/',
    //     //实现路由重定向
    //     element:<Navigate to='/main'/>
    // }
])
